﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp5
{
    public partial class Form5 : Form
    {
        private int id;

        public Form5()
        {
            InitializeComponent();
        }

        public Form5(string name, int id, string title, string author)
        {
            this.id = id;
        }

        public Form5(string name, int id, int title, int author)
        {
            Name = name;
            this.id = id;
        }

        private void Form5_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

         /*   var name = textBox1 .Text;
            var age = textBox2.Text;
            var score = textBox3 .Text;


            //修改
            if (this.id > 0) 
            {
                var sql = string.Format("update  Articles set Author ='{0}',name={1}, id={2}, title={3}, author", name, age, score, this.id);

                DbHelper.AddOrEditSave(sql);

                MessageBox.Show("修改成功!", "提示");

            }*/
        }
    }
}
